import React from 'react'
import { Text, View, Button } from'react-native'
import { createNativeStackNavigator } from "@react-navigation/native-stack";
import BookMain from './bookMain.jsx';
import BookContent from './bookContent.jsx';
import BookReading from './bookReading.jsx';
import LoginPage from './LoginPage.jsx';

const Stack = createNativeStackNavigator();

const Book = () => {
  return (
    <>
        <Stack.Navigator screenOptions={{headerShown:false, }} initialRouteName='BookMain'>
            <Stack.Screen name="BookMain" component={BookMain} />
            <Stack.Screen name="BookContent" component={BookContent} />
            <Stack.Screen name="BookReading" component={BookReading} />
            <Stack.Screen name="LoginPage" component={LoginPage} />
            {/* 这里是子页面的路由 */}
        </Stack.Navigator>
    </>
  )
}

export default Book

//已弃用，由shelf.jsx中实现